package com.hc.race.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hc.race.entity.Users;
import com.hc.race.mapper.UsersMapper;
import com.hc.race.service.UsersService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author zy
 * @Date 2023/11/25 11:28
 * @PackageName:com.hc.race.service.impl
 * @ClassName: UsersServiceImpl
 * @Description: TODO
 * @Version 1.0
 */
@Service
public class UsersServiceImpl extends ServiceImpl<UsersMapper, Users> implements UsersService {

    @Resource
    private UsersMapper usersMapper;
    @Override
    public Users getInfo(Long userId) {
        Users users = usersMapper.selectById(userId);
        return users;
    }
}
